package interactions;

import java.awt.Point;

import sprite.Sprite;




/**
 * @author Seon Kang, Yaqi Zhang
 * 
 */
public class SwapVelocity implements Reaction {
    /**
     * This method swap the velocity of sprite 1 and sprite 2.
     * 
     * @param s1 sprite 1
     * @param s2 sprite 2
     */
    public void doStrategyAction (Sprite s1, Sprite s2) {
        Point temp = s1.getVelocity();
        s1.setVelocity(s2.getVelocity());
        s2.setVelocity(temp);
    }
}
